package services

import (
	"github.com/goravel/framework/contracts/database/orm"
	"github.com/goravel/framework/contracts/http"
	"goravel/app/types"
)

type DBServer interface {
	// ListPage 分页查询
	ListPage(http.Context, any, orm.Query, any) (any, types.Meta, error)
	// GetById 根据id查询
	GetById(any, any, int64) (any, error)
	// Create 创建
	Create(any, any) error
	// Update 更新
	Update(any, any, int64) error
	// Delete 删除
	Delete(any, int64) error
}
